<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/mvc
        http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">

    <!--<mvc:annotation-driven/>-->

    <!--view resolver （视图解析器），用于将视图名解析成真实的视图资源。-->
    <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix" value="/WEB-INF/Pages/"/>
        <property name="suffix" value=".jsp"/>
    </bean>

    <mvc:view-controller path="/TestFirstPage"/>

    <bean id="personalInfoCreater" class="Collector.PersonalInfoCreater"/>
    <bean id="fetcher" class="Collector.MySqlDataFetcher">
        <property name="sessionFactory" ref="sessionFactory"/>
    </bean>

</beans>